#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import sys
sys.path.append("..")
import requests
import time
import json 
from db.mysql import getConnection


first = 1;
url = """https://service.azlook.com/hdts/api/v1/commodities/%s?bid=&bp=&bs=&cat_ids=&cla_ids=&oc=rand&om=ASC&st=1&tp="""%(str(first))
print(url)

r = requests.options(url)
for o in r:
	print(o)
# print(json.dumps(r))
print(r.headers)
print(r.text)

# data = requests.get(url, headers=headers).json()
# print(data)